<%inherit file="/base.html"/>

<%def name="main_heading()">${_('Orders')}</%def>

<%def name="content()">

${h.years_chooser(c.years, c.year)}

<div class="paginator">${c.orders.pager()}</div>
<table class="data-table">
	% for order in c.orders:
	<tr>
		<td><a href="${url(controller='orders/order', action='view', id=order.id)}">"${order.type}" ${_('#')}${order.number} ${_('since')} ${order.approved}</a></td>
		<td class="crud-action edit"><a href="${url(controller='orders/order', action='edit', id=order.id)}">${_('edit')}</a></td>
	</tr>
	% endfor
</table>
<div class="paginator">${c.orders.pager()}</div>

</%def>